import request from "@/apps/admin/units/request"
import {HttpResultData} from "@/types/project";//导入基本分页数据结构


/**
 * 登录验证码
 */
export function getLoginCodeApi(): Promise<HttpResultData<{ image: string, sign: string }>> {
    return request(`/login/login-image-code`)
}


/**
 * 账号密码登录
 */
export function toLoginApi(data: { account: string, password: string, sign: string, code: string }) {
    return request(`/login/login`, data, 'POST')
}
